#include <stdio.h>

int main(int argc, char argv) {
    int n,m;
    while(scanf("%d",&n))
    {
        scanf("%d",&m);
        int i,b=0,a=0,k=0,sum=0;
        float avg;
        for(i=0;i<n;i++)
        {
            a=a+2;
            sum=sum+a;
            k++;
            while(k==m)
            {
                avg=sum/m;
                b++;
                if(n%m!=0)
                {
                    printf("%.2f ",avg);
                }else
                {
                    printf("%.2f",avg);
                    if(b!=(n/m))
                    {
                        printf(" ");
                    }else
                    {
                        printf("\n");
                    }
                }
                k=0;
                sum=0;
            }
        }
        if(sum!=0)
        {
            printf("%.2f\n",sum/k);
        }

    }
    return 0;
}
